
#include <iostream>
#include <iomanip>

void modifyArray(int [] , int);
void modifyElement(int);

int main (int argc, const char** argv){
	const int arraySize = 5;
	int a[ arraySize ] = {0, 1, 2, 3, 4};
	
	for (int i = 0; i < arraySize; ++i){
		std::cout << std::setw( 3 ) << a[ i ];
	}
	std::cout << std::endl;

	modifyArray(a, arraySize );
	std::cout << "The values of modified array are \n";

	for ( int j = 0; j < arraySize; ++j){
		std::cout << std::setw( 3 ) << a[ j ];
	}

	std::cout << "\nThe values of modified array element";
	std::cout << "\nbefore modify " << a [3];
	std::cout << "\nThe values of modified array element\n";
	modifyElement(a[ 3 ]);
	std::cout << "a[ 3 ] " << a[ 3 ];
}

void modifyArray (int b[],int sizeArray ){


	for (int i = 0; i < sizeArray; ++i){
		b[ i ] *= 2;
	}
}

void modifyElement(int e){
	std::cout << "ModifyElement " << ( e * 2 ) << std::endl;

}
